<script src="{dede:global.cfg_skin/}/js/ajaxlogin.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript" src="{dede:global.cfg_cmsurl/}/include/dedeajax2.js"></script>
<script language="javascript" type="text/javascript">
  function CheckLogin() {
    var taget_obj = document.getElementById('huiyuan');
    myajax = new DedeAjax(taget_obj, false, false, '', '', '');
    myajax.SendGet2("{dede:global.cfg_memberurl/}/ajax_loginsta.php");
    DedeXHTTP = null;
  }
</script>

<div class="cl" id="header"></div>
<div class="header_wrap">
  <div class="top">
    <div class="wi-center">
      <div class="top-left fl"> <a href="#" target="_blank" class="qqqun"> <img src="//pub.idqqimg.com/wpa/images/group.png" border="0"> </a> <a id="wix" href="javascript:void(0);" rel="nofollow"> <img border="0" src="/skin/images/weixin.png"> </a>
        <div class="erweima none" style="display:none;"> <img border="0" src="/skin/images/erweima.jpg" title="二维码"> </div>
        <a href="/vip/" target="_blank"> <img border="0" src="/skin/images/a_d_s/tejia.gif"> </a> </div>
      <div class="header_user" id="huiyuan"> <a href="{dede:global.cfg_memberurl/}/login.php" class="i_login">登录</a> <a href="{dede:global.cfg_memberurl/}/index_do.php?fmdo=user&dopost=regnew" class="i_sign">注册</a> <a href="{dede:global.cfg_cmsurl/}/qqLogin/index.php" class="i_qqlogin"><i class="iconfont icon-qq"></i>QQ登录</a> </div>
      <script language="javascript" type="text/javascript">CheckLogin();</script>
      <div class="top-right fr"> <a class="mr15" href="/user/buy.php" target="_blank" title="金币充值">金币充值</a> <a class="mr15" href="/user/buy.php" target="_blank" title="VIP购买">VIP购买</a> </div>
    </div>
  </div>
  <div class="bottom">
    <div class="wi-center">
      <h1 class="logo pt30 fl"> <a href="/" title="{dede:global.cfg_webname/}">{dede:global.cfg_webname/}</a> </h1>
      <div class="nav fl">
        <ul class="clearfix">
          <li> <a href="/" title="{dede:global.cfg_webname/}">首页</a> </li>
          {dede:channel type='top' row='4'}
          <li> <a href="[field:typeurl/]" title="[field:typename/]">[field:typename/]</a> </li>
          {/dede:channel}
          <li class="other"> <a href="javascript:void(0);" rel="nofollow">更多</a>
            <dl class="colmore">
              {dede:channelartlist typeid='4,5'}
              <dd> <a title="{dede:field name='typename'/}" href="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a> </dd>
              {/dede:channelartlist}
            </dl>
          </li>
        </ul>
      </div>
      <div class="sousuo_s fr">
        <div class="search_form">
          <form action="{dede:global.cfg_phpurl/}/search.php" id="searchForm" name="searchForm" onsubmit="return checkSearchForm()">
            <input type="hidden" name="kwtype"  value="0" />
            <input type="hidden" name="q"  value="" />
            <input type="hidden" id="type_id" name="typeid" value='0'/>
            <div class="search_input">
              <div class="search_filter" id="header_filter">
                <div class="selected_type"> 全部作品 </div>
                <dl class="search_type">
                  <dd rel="0">全部作品</dd>
                  <dd rel="2">网站模板</dd>
                  <dd rel="1">静态模板</dd>
                  <dd rel="16">源码插件</dd>
                  <dd rel="54">视频教程</dd>
                  <dd rel="5">文章教程</dd>
                </dl>
              </div>
              <input type="hidden" name="type" value="0" id="header_search_type"/>
              <input type="text" name="keyword" id="keyword" autocomplete="off" placeholder="懒得逛，试试搜索功能吧！" value=""/>
            </div>
            <button type="submit" class="search_btn"><i class="icon_search"></i></button>
          </form>
        </div>
        <div class="hotword_s"> {dede:hotwords  num=5  subday=365 maxlength=16/} </div>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript">
      <!--
      function checkSearchForm(){
        if(document.getElementById('keyword').value){
          return true;
        }else{
		  alert("请输入搜索关键词！");
		  return false;
        }
      }
	  function checkSearchForm1(){
        if(document.getElementById('keyword1').value){
          return true;
        }else{
		  alert("请输入搜索关键词！");
		  return false;
        }
      }
      -->
    </script> 